import java.util.Scanner;

public class Main{

    public static String fun(double n){
        return String.format("%.2f", n);
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = scanner.nextInt();
        int n = scanner.nextInt();
        double high = 1.0 * m;
        double dist = 0.0D;
        for(int i=0;i<n;i++){
            dist += high;
            high /= 2;
            dist += high;
        }
        System.out.println(fun(high)+" "+fun(dist-high));
    }
}